<template>
	<!-- <view> -->
		<view class="subscribe">
		        <view class="imgStyle">
		           <u--image :src="urls" width="50vw" height="30vh"></u--image>
		           <view style="text-align: center;">扫描二维码关注六朝智慧园区</view> 
		           <!-- <view>才能使用寄存柜功能</view> -->
		        </view>
		    </view>
	<!-- </view> -->
</template>

<script>
	import Api from '@/util/api.js'
	export default {
		data() {
			return {
				urls:''
			}
		},
		onLoad() {
			var that = this
			that.getQRcode();
		},
		methods:{
			getQRcode(){
				var that = this
				Api.getQRcode().then(res=>{
					that.urls = res.data.url
				})
			}
		}
	}
</script>

<style lang="scss">
 .subscribe{
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #32CD32;
    }
    .imgStyle{
        border-radius: 12px;
        background-color: white;
        padding: 20px 25px;
    }
</style>
